
<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = '';
}
?>




<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?> sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }
         ?>
         <div class="panel panel-primary">
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
<div class="panel-body"><?php if(strtolower(GROUP_NAME) != 'admin'){?>
<script>
	$.holdReady(false);
	$(document).ready(function(e) {
        $.ajax({
			url:"<?php echo U('Ajax/getRegion');?>",
			data:"",
			type:"POST",
			dataType:"html",
			success: function(data){
				$('#areabox').html(data);
			}
		}); 
    });
	function removnextAll(e){
		if($(e).next().length>0){
			removnextAll($(e).next());
			$(e).next().remove();
		}
	}
	function sendRegion(e){
		if(e.value>0){
			$.ajax({
			url:"<?php echo U('Ajax/getRegion');?>",
			data:"fid="+e.value,
			type:"POST",
			dataType:"html",
				success: function(data){
					removnextAll(e);
					$(e).parent().append(data);
				}
		    });
	    }else{
		    removnextAll(e);
	    }
	    return false;
	}

</script>
<?php }?>





<form class="checkoutform" id="checkout" action="<?php echo U('showAddress');?>" method="post">


<div style="padding:10px;">
  <input type="hidden" value="address"  name="type">
  <div class="" style="margin-top:15px;">
  <p><strong>收货人<samp style="color:red;">*</samp></strong></p>
  <div class="">
    <input type="text" name="yourname" datatype="*" id="yourname" class="form-control" placeholder="收货人姓名(必填)" >
  </div>
  </div>
  
  <div class="" style="margin-top:15px;">
  <p><strong>手机号码<samp style="color:red;">*</samp></strong></p>
  <div class=""> 
    <input type="text" name="tel" datatype="*" id="tel" class="form-control" placeholder="收货人手机号(必填)" >
  </div>
  </div>
  
  <div class="" style="margin-top:15px;">
  <p><strong>配置地址<samp style="color:red;">*</samp></strong></p>
  <div class="">
    <span id="areabox"></span>
  </div>
  <br>
  <div class="">
    <input type="text" name="address" datatype="*" id="address" class="form-control" placeholder="详细收货地址(必填)" style="height:80px;" >
  </div>
  </div>
  
  
  <div class="" style="margin-top:15px;">
  <br>
  <div class="">
    <input type="submit" datatype="*"  class="form-control"  value="配送至这个地址" style="background:rgba(215,108,110,1.00); color:#fff">
  </div>
  </div>
  
  
</div>

</form>
<?php if(strtolower(GROUP_NAME) != 'admin'){?>
<script type="text/javascript">
$(".checkoutform").Validform();

</script><?php }?>
</div></div></div>